package cn.nawang.ebeim.ui.bean;

import cn.nawang.ebeim.client.bean.BackStrategy;

/**
 * @ClassName: DataSourceWrapper
 * @Description: TODO
 * @author fanyb
 * @date Sep 21, 2015 9:39:28 PM
 * @version v1.0
 */
public class DataSourceWrapper {

  private Datasource datasource;
  private DatasourceConfig datasourceConfig;
  private BackStrategy backStrategy;
  private User user;
  private Bean bean;
  
  public Bean getBean() {
    return bean;
  }
  public void setBean(Bean bean) {
    this.bean = bean;
  }
  public User getUser() {
    return user;
  }
  public void setUser(User user) {
    this.user = user;
  }
  public Datasource getDatasource() {
    return datasource;
  }
  public void setDatasource(Datasource datasource) {
    this.datasource = datasource;
  }
  public DatasourceConfig getDatasourceConfig() {
    return datasourceConfig;
  }
  public void setDatasourceConfig(DatasourceConfig datasourceConfig) {
    this.datasourceConfig = datasourceConfig;
  }
  public BackStrategy getBackStrategy() {
    return backStrategy;
  }
  public void setBackStrategy(BackStrategy backStrategy) {
    this.backStrategy = backStrategy;
  }
  public DataSourceWrapper(Datasource datasource, DatasourceConfig datasourceConfig,
      BackStrategy backStrategy) {
    super();
    this.datasource = datasource;
    this.datasourceConfig = datasourceConfig;
    this.backStrategy = backStrategy;
  }
  public DataSourceWrapper() {
    super();
  }
  @Override
  public String toString() {
    return "DataSourceWrapper [datasource=" + datasource + ", datasourceConfig=" + datasourceConfig
        + ", backStrategy=" + backStrategy + "]";
  }
}
